gadgetx()

Description:

This will return the horizontal position, of the specified gadget.

Syntax:

Required syntax:

 

xposition = gadgetx( gadgethandle )

 

Optional syntax

 

xposition = gadgetx( gadgethandle , [ global ] )

 

Parameters:

Required parameters

Description

gadgethandle The handle to the gadget you wish to check the horizontal position of
Optional parameters

Description

Default

global Boolean value to set if the returned value should be relative to the used graphics buffer or to the gadget´s window (relative to gadget´s window = 0/ relative to graphics buffer = 1)

0

Returns:

The specified gadget´s horizontal position ( x )

Example: